-
-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix gzip help text #2060
Fix gzip help text #2060
Conversation
Signed-off-by: DL6ER <[email protected]>
The corresponding code is here: Lines 215 to 266 in 3b1aebd
|
Co-authored-by: RD WebDesign <[email protected]> Signed-off-by: Dominik <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I understand the changed help text, but it required a lot of mental energy. The whole reason for the change is
The previously described flags --compress and --uncompress never existed.
I'd like to suggest to implement them. This would make the handling way more intuitive and does not require to think around the corner.
pihole-FTL --gzip --compress file.txt --> file.txt.gz
pihole-FTL --gzip --compress file.txt out.gt--> out.gz
pihole-FTL --gzip --compress file.gz --> error/or file.gz.gz
pihole-FTL --gzip --uncompress file.txt.gz --> file.txt
pihole-FTL --gzip --uncompress file.txt --> error
pihole-FTL --gzip file.txt --> error
pihole-FTL --gzip file.gz --> error
Sometimes - actually quite often - less is more. I would like to avoid introducing additional flags because shorter always seems to be better on the CLI. Of course, this is only true if understandability isn't decreased by this brevity. But I don't really think it's the case here. How about instead of describing its precisely, we instead only provide the examples and let them speak for themselves? |
Your suggestion sounds good. The text is short and easy to understand. |
Signed-off-by: DL6ER <[email protected]>
What does this implement/fix?
The previously described flags
--compress
and--uncompress
never existed.New help text:
Related issue or feature (if applicable): N/A
Pull request in docs with documentation (if applicable): N/A
By submitting this pull request, I confirm the following:
git rebase
)Checklist:
developmental
branch.